<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">{:lang('WEB_SITE_INFOS')}</a></li>
        <li><a href="#B" data-toggle="tab">{:lang('SEO_SETTING')}</a></li>
        <li><a href="#C" data-toggle="tab">APP版本管理</a></li>
<!--        <li><a href="#D" data-toggle="tab">分享管理</a></li>-->
<!--		<li><a href="#H" data-toggle="tab">直播管理</a></li>-->
        <li><a href="#I" data-toggle="tab">美颜/萌颜</a></li>
		<li><a href="#J" data-toggle="tab">登录协议弹窗</a></li>
<!--        <li><a href="#K" data-toggle="tab">青少年模式设置</a></li>-->
        <li><a href="#L" data-toggle="tab">排行榜设置</a></li>
        <li><a href="#P" data-toggle="tab">每日免费次数</a></li>
        <li><a href="#R" data-toggle="tab">开播要求</a></li>
        <!-- <li><a href="#G" data-toggle="tab">CDN设置</a></li> -->
        
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/sitePost')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label"><span
                                    class="form-required">*</span>{:lang('WEBSITE_NAME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site-name" name="options[site_name]"
                                       value="{$site_info.site_name|default=''}">
                            </div>
                        </div>
						 <div class="form-group">
                            <label for="input-company_name" class="col-sm-2 control-label">公司名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-company_name" name="options[company_name]"
                                       value="{$site_info.company_name|default=''}">
                                       <p class="help-block">公司名称(网站首页关于我们使用)</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label  for="input-company_desc" class="col-sm-2 control-label">公司简介</label>
                            <div class="col-md-6 col-sm-10">        
                                <textarea  class="form-control" name="options[company_desc]">{$site_info['company_desc']|default=''}</textarea>
                                <p class="help-block">公司简介（网站首页关于我们使用,字数在120字以内）</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_url" class="col-sm-2 control-label"><span
                                    class="form-required">*</span>站点域名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site-name" name="options[site_url]" value="{$site_info.site_url|default=''}">
                                格式： http(s)://xxxx.com(:端口号)
                            </div> 
                        </div>
                        <div class="form-group" style="display:none;">
                            <label for="input-admin_url_password" class="col-sm-2 control-label">
                                后台加密码
                                <a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/493509"
                                   title="查看帮助手册"
                                   data-toggle="tooltip"
                                   target="_blank"><i class="fa fa-question-circle"></i></a>
                            </label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-admin_url_password"
                                       name="admin_settings[admin_password]"
                                       value="{$admin_settings.admin_password|default=''}"
                                       id="js-site-admin-url-password">
                                <p class="help-block">英文字母数字，不能为纯数字</p>
                                <p class="help-block" style="color: red;">
                                    设置加密码后必须通过以下地址访问后台,请劳记此地址，为了安全，您也可以定期更换此加密码!</p>
                                <php>
                                    $root=cmf_get_root();
                                    $root=empty($root)?'':'/'.$root;
                                    $site_domain = cmf_get_domain().$root;
                                </php>
                                <p class="help-block">后台登录地址：<span id="js-site-admin-url">{$site_domain}/{$admin_settings.admin_password|default='admin'}</span>
                                </p>
                            </div>
                        </div>
                        <div class="form-group" style="display:none;">
                            <label for="input-site_admin_theme" class="col-sm-2 control-label">后台模板</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
                                    $site_admin_theme=empty($admin_settings['admin_theme'])?'':$admin_settings['admin_theme'];
                                </php>
                                <select class="form-control" name="admin_settings[admin_theme]"
                                        id="input-site_admin_theme">
                                    <foreach name="admin_themes" item="vo">
                                        <php>$admin_theme_selected = $site_admin_theme == $vo ? "selected" : "";</php>
                                        <option value="{$vo}" {$admin_theme_selected}>{$vo}</option>
                                    </foreach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="display:none;">
                            <label for="input-site_adminstyle" class="col-sm-2 control-label">{:lang('WEBSITE_ADMIN_THEME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
                                    $site_admin_style=empty($admin_settings['admin_style'])?cmf_get_admin_style():$admin_settings['admin_style'];
                                </php>
                                <select class="form-control" name="admin_settings[admin_style]"
                                        id="input-site_adminstyle">
                                    <foreach name="admin_styles" item="vo">
                                        <php>$admin_style_selected = $site_admin_style == $vo ? "selected" : "";</php>
                                        <option value="{$vo}" {$admin_style_selected}>{$vo}</option>
                                    </foreach>
                                </select>
                            </div>
                        </div>
                        <if condition="APP_DEBUG && false">
                            <div class="form-group">
                                <label for="input-default_app" class="col-sm-2 control-label">默认应用</label>
                                <div class="col-md-6 col-sm-10">
                                    <php>
                                        $site_default_app=empty($cmf_settings['default_app'])?'demo':$cmf_settings['default_app'];
                                    </php>
                                    <select class="form-control" name="cmf_settings[default_app]"
                                            id="input-default_app">
                                        <foreach name="apps" item="vo">
                                            <php>$default_app_selected = $site_default_app == $vo ? "selected" : "";
                                            </php>
                                            <option value="{$vo}" {$default_app_selected}>{$vo}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                        </if>
                        <div class="form-group">
                            <label for="input-name_coin" class="col-sm-2 control-label">消费币名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-name_coin" name="options[name_coin]" value="{$site_info.name_coin|default=''}"> 
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-name_coin_en" class="col-sm-2 control-label">Consumer Currency Name</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-name_coin_en" name="options[name_coin_en]" value="{$site_info.name_coin_en|default=''}"> 
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name_votes" class="col-sm-2 control-label">收益币名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-name_votes" name="options[name_votes]" value="{$site_info.name_votes|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-name_votes_en" class="col-sm-2 control-label">Revenue Coin Name</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-name_votes_en" name="options[name_votes_en]" value="{$site_info.name_votes_en|default=''}">
                            </div>
                        </div>
						
                        <div class="form-group">
                            <label for="input-copyright" class="col-sm-2 control-label">版权信息</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-copyright" name="options[copyright]" maxlength="200">{$site_info.copyright|default=''}</textarea> 版权信息（200字以内）
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-copyright_url" class="col-sm-2 control-label">版权链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-copyright_url" name="options[copyright_url]" value="{$site_info.copyright_url|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="B">
                        <div class="form-group">
                            <label for="input-site_seo_title" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_TITLE')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_seo_title"
                                       name="options[site_seo_title]" value="{$site_info.site_seo_title|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_seo_keywords" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_KEYWORDS')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_seo_keywords"
                                       name="options[site_seo_keywords]"
                                       value="{$site_info.site_seo_keywords|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_seo_description" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_DESCRIPTION')}</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-site_seo_description"
                                          name="options[site_seo_description]">{$site_info.site_seo_description|default=''}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="C">
                        <div class="form-group">
                            <label for="input-apk_ver" class="col-sm-2 control-label">APK版本号</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-apk_ver" name="options[apk_ver]" value="{$site_info.apk_ver|default=''}"> 安卓APP版本号，请勿随意修改
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-apk_url" class="col-sm-2 control-label">APK下载链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-apk_url" name="options[apk_url]" value="{$site_info.apk_url|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-apk_des" class="col-sm-2 control-label">APK更新说明</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-apk_des" name="options[apk_des]" maxlength="100">{$site_info.apk_des|default=''}</textarea> 100字以内
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-apk_des_en" class="col-sm-2 control-label">APK Update Instructions</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-apk_des_en" name="options[apk_des_en]" maxlength="100">{$site_info.apk_des_en|default=''}</textarea> Within 100 words
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ipa_ver" class="col-sm-2 control-label">IPA版本号</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ipa_ver" name="options[ipa_ver]" value="{$site_info.ipa_ver|default=''}"> IOS APP版本号，请勿随意修改
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ios_shelves" class="col-sm-2 control-label">IPA上架版本号</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ios_shelves" name="options[ios_shelves]" value="{$site_info.ios_shelves|default=''}"> IOS上架审核中版本的版本号(用于上架期间隐藏上架版本部分功能,不要和IPA版本号相同),上架成功后要修改
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ipa_url" class="col-sm-2 control-label">IPA下载链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ipa_url" name="options[ipa_url]" value="{$site_info.ipa_url|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ipa_des" class="col-sm-2 control-label">IPA更新说明</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-ipa_des" name="options[ipa_des]" maxlength="100">{$site_info.ipa_des|default=''}</textarea> 100字以内
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-ipa_des_en" class="col-sm-2 control-label">IPA update instructions</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-ipa_des_en" name="options[ipa_des_en]" maxlength="100">{$site_info.ipa_des_en|default=''}</textarea> Within 100 words
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-qr_url" class="col-sm-2 control-label">二维码</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="hidden" name="options[qr_url]" id="thumbnail" value="{$site_info['qr_url']}">
                                <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
                                    <if condition="empty($site_info.qr_url)">
                                    <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                             id="thumbnail-preview"
                                             style="cursor: pointer;max-width:150px;max-height:150px;"/>
                                    <else/>
                                    <img src="{:cmf_get_image_preview_url($site_info.qr_url)}"
                                         id="thumbnail-preview"
                                         style="cursor: pointer;max-width:150px;max-height:150px;"/>
                                    </if>
                                </a>
                                <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> 首页使用 建议尺寸  200 X 200
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="D">
						<div class="form-group">
                            <label for="input-share_live_title" class="col-sm-2 control-label">直播分享标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_live_title"
                                       name="options[share_live_title]" value="{$site_info.share_live_title|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-share_live_title_en" class="col-sm-2 control-label">Live sharing title</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_live_title_en"
                                       name="options[share_live_title_en]" value="{$site_info.share_live_title_en|default=''}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-share_live_des" class="col-sm-2 control-label">直播分享话术</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_live_des"
                                       name="options[share_live_des]" value="{$site_info.share_live_des|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-share_live_des_en" class="col-sm-2 control-label">Live streaming sharing script</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_live_des_en"
                                       name="options[share_live_des_en]" value="{$site_info.share_live_des_en|default=''}">
                            </div>
                        </div>
						
                        <div class="form-group">
                            <label for="input-share_video_title" class="col-sm-2 control-label">视频分享标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_video_title"
                                       name="options[share_video_title]" value="{$site_info.share_video_title|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-share_video_title_en" class="col-sm-2 control-label">Video sharing title</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_video_title_en"
                                       name="options[share_video_title_en]" value="{$site_info.share_video_title_en|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-share_video_des" class="col-sm-2 control-label">视频分享话术</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_video_des"
                                       name="options[share_video_des]"
                                       value="{$site_info.share_video_des|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-share_video_des_en" class="col-sm-2 control-label">Video sharing script</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_video_des_en"
                                       name="options[share_video_des_en]"
                                       value="{$site_info.share_video_des_en|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-share_agent_title" class="col-sm-2 control-label">全民赚钱分享标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_agent_title"
                                       name="options[share_agent_title]" value="{$site_info.share_agent_title|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-share_agent_title_en" class="col-sm-2 control-label">Title of 'Making Money for All' Share</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_agent_title_en"
                                       name="options[share_agent_title_en]" value="{$site_info.share_agent_title_en|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-share_agent_des" class="col-sm-2 control-label">全民赚钱分享话术</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_agent_des"
                                       name="options[share_agent_des]"
                                       value="{$site_info.share_agent_des|default=''}">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-share_agent_des_en" class="col-sm-2 control-label">The Art of Sharing Money for All</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-share_agent_des_en"
                                       name="options[share_agent_des_en]"
                                       value="{$site_info.share_agent_des_en|default=''}">
                            </div>
                        </div>
                        

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					
					<div class="tab-pane" id="H">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">房间类型</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
                                    $type_0='0;普通房间';
                                    $type_1='1;密码房间';
                                    $type_2='2;门票房间';
                                    $type_3='3;计时房间';
                                </php>
								<label class="checkbox-inline hide"><input type="checkbox" value="0;普通房间" name="live_type[]" checked="checked">普通房间</label>
                                <if condition="isset($site_info['live_type'])">
                      
                                    <label class="checkbox-inline"><input type="checkbox" value="1;密码房间" name="live_type[]" <in value="$site_info['live_type']" name="type_1">checked="checked"</in>>密码房间</label>
                                    <label class="checkbox-inline"><input type="checkbox" value="2;门票房间" name="live_type[]" <in value="$site_info['live_type']" name="type_2">checked="checked"</in>>门票房间</label>
                                    <label class="checkbox-inline"><input type="checkbox" value="3;计时房间" name="live_type[]" <in value="$site_info['live_type']" name="type_3">checked="checked"</in>>计时房间</label>
                                </if>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-live_time_coin" class="col-sm-2 control-label">计时直播收费</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-live_time_coin"
                                       name="options[live_time_coin]" value="{$site_info.live_time_coin|default=''}">
                                <p class="help-block">计时直播收费，价格梯度用 , 分割 例：1,2,3</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					
                    <div class="tab-pane" id="F">
                        <div class="form-group">
                            <label for="input-banned_usernames" class="col-sm-2 control-label">用户注册验证</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="cmf_settings[open_registration]">
                                    <option value="0">是</option>
                                    <php>
                                        $open_registration_selected = empty($cmf_settings['open_registration'])?'':'selected';
                                    </php>
                                    <option value="1" {$open_registration_selected}>否</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="display: none;">
                            <label for="input-banned_usernames" class="col-sm-2 control-label">{:lang('SPECAIL_USERNAME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-banned_usernames"
                                          name="cmf_settings[banned_usernames]">{$cmf_settings.banned_usernames}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="I">

                        <div class="form-group">
                            <label for="input-sprout_appid" class="col-sm-2 control-label">萌颜APPID-Andriod</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-sprout_appid"
                                       name="options[sprout_appid]" value="{$site_info.sprout_appid|default=''}">
                                       <p class="help-block">留空 表示使用默认美颜</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-sprout_key" class="col-sm-2 control-label">萌颜授权码-Andriod</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-sprout_key"
                                       name="options[sprout_key]" value="{$site_info.sprout_key|default=''}">
                                       留空 表示使用默认美颜
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-sprout_appid_ios" class="col-sm-2 control-label">萌颜APPID-iOS</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-sprout_appid_ios"
                                       name="options[sprout_appid_ios]" value="{$site_info.sprout_appid_ios|default=''}">
                                       <p class="help-block">留空 表示使用默认美颜</p>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-sprout_key_ios" class="col-sm-2 control-label">萌颜授权码-IOS</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-sprout_key_ios"
                                       name="options[sprout_key_ios]" value="{$site_info.sprout_key_ios|default=''}">
                                       留空 表示使用默认美颜
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-sprout_white" class="col-sm-2 control-label">美颜</label>
                            <div class="col-md-6 col-sm-10">
                                美白：<input type="text" class="form-control control3" name="options[skin_whiting]" value="{$site_info['skin_whiting']|default='-1'}" > <br>
                                磨皮：<input type="text" class="form-control control3" name="options[skin_smooth]" value="{$site_info['skin_smooth']|default='-1'}" > <br>
                                红润：<input type="text" class="form-control control3" name="options[skin_tenderness]" value="{$site_info['skin_tenderness']|default='-1'}" > <br>
                                0-9 整数 -1为不设置
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-sprout_skin" class="col-sm-2 control-label">美型</label>
                            <div class="col-md-6 col-sm-10">
                                眉毛：<input type="text" class="form-control control3" name="options[eye_brow]" value="{$site_info['eye_brow']|default='-1'}" > <br>
                                大眼：<input type="text" class="form-control control3" name="options[big_eye]" value="{$site_info['big_eye']|default='-1'}" > <br>
                                眼距：<input type="text" class="form-control control3" name="options[eye_length]" value="{$site_info['eye_length']|default='-1'}" > <br>
                                眼角：<input type="text" class="form-control control3" name="options[eye_corner]" value="{$site_info['eye_corner']|default='-1'}" > <br>
                                开眼角：<input type="text" class="form-control control3" name="options[eye_alat]" value="{$site_info['eye_alat']|default='-1'}" > <br>
                                瘦脸：<input type="text" class="form-control control3" name="options[face_lift]" value="{$site_info['face_lift']|default='-1'}" > <br>
                                削脸：<input type="text" class="form-control control3" name="options[face_shave]" value="{$site_info['face_shave']|default='-1'}" > <br>
                                嘴形：<input type="text" class="form-control control3" name="options[mouse_lift]" value="{$site_info['mouse_lift']|default='-1'}" > <br>
                                瘦鼻：<input type="text" class="form-control control3" name="options[nose_lift]" value="{$site_info['nose_lift']|default='-1'}" > <br>
                                下巴：<input type="text" class="form-control control3" name="options[chin_lift]" value="{$site_info['chin_lift']|default='-1'}" > <br>
                                额头：<input type="text" class="form-control control3" name="options[forehead_lift]" value="{$site_info['forehead_lift']|default='-1'}" > <br>
                                长鼻：<input type="text" class="form-control control3" name="options[lengthen_noseLift]" value="{$site_info['lengthen_noseLift']|default='-1'}" > <br>
                                0-100 整数 -1为不设置
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="G">
                        <div class="form-group">
                            <label for="input-cdn_static_root" class="col-sm-2 control-label">静态资源cdn地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cdn_static_root"
                                       name="cdn_settings[cdn_static_root]"
                                       value="{$cdn_settings.cdn_static_root|default=''}">
                                <p class="help-block">
                                    不能以/结尾；设置这个地址后，请将ThinkCMF下的静态资源文件放在其下面；<br>
                                    ThinkCMF下的静态资源文件大致包含以下(如果你自定义后，请自行增加)：<br>
                                    themes/admin_simplebootx/public/assets<br>
                                    static<br>
                                    themes/simplebootx/public/assets<br>
                                    例如未设置cdn前：jquery的访问地址是/static/js/jquery.js, <br>
                                    设置cdn是后它的访问地址就是：静态资源cdn地址/static/js/jquery.js
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
					
					<div class="tab-pane" id="J">
                        

                        <div class="form-group">
                            <label for="input-login_alert_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>弹框标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_alert_title" name="options[login_alert_title]" value="{$site_info.login_alert_title|default=''}">
                            </div> 
                        </div>
						
						<div class="form-group">
                            <label for="input-login_alert_title_en" class="col-sm-2 control-label"><span
                                    class="form-required"></span>Pop up title</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_alert_title_en" name="options[login_alert_title_en]" value="{$site_info.login_alert_title_en|default=''}">
                            </div> 
                        </div>
                        
                        <div class="form-group">
                            <label for="input-login_alert_content" class="col-sm-2 control-label">弹框内容</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-login_alert_content" name="options[login_alert_content]" >{$site_info.login_alert_content|default=''}</textarea>
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-login_alert_content_en" class="col-sm-2 control-label">Pop up content</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-login_alert_content_en" name="options[login_alert_content_en]" >{$site_info.login_alert_content_en|default=''}</textarea>
                            </div>
                        </div>
						
                        
                        <div class="form-group">
                            <label for="input-login_clause_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>APP登录界面底部协议标题</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_clause_title" name="options[login_clause_title]" value="{$site_info.login_clause_title|default=''}">
                            </div> 
                        </div>
						<div class="form-group">
                            <label for="input-login_clause_title_en" class="col-sm-2 control-label"><span
                                    class="form-required"></span>The protocol title at the bottom of the APP login interface</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_clause_title_en" name="options[login_clause_title_en]" value="{$site_info.login_clause_title_en|default=''}">
                            </div> 
                        </div>

                        <div class="form-group">
                            <label for="input-login_private_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>隐私政策名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_private_title" name="options[login_private_title]" value="{$site_info.login_private_title|default=''}">
                                <p class="help-block">填写的名称必须与弹框内容和登录界面底部协议标题中填写的名称相符,必须包含书名号《》</p>
                            </div> 
                        </div>
						<div class="form-group">
                            <label for="input-login_private_title_en" class="col-sm-2 control-label"><span
                                    class="form-required"></span>Privacy Policy Name</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_private_title_en" name="options[login_private_title_en]" value="{$site_info.login_private_title_en|default=''}">
                                <p class="help-block">The name filled in must match the name filled in the pop-up content and the agreement title at the bottom of the login interface, and must include the book title《》</p>
                            </div> 
                        </div>

                        <div class="form-group">
                            <label for="input-login_private_url" class="col-sm-2 control-label"><span
                                    class="form-required"></span>隐私政策跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_private_url" name="options[login_private_url]" value="{$site_info.login_private_url|default=''}">
                                <p class="help-block">本站链接请以/开头，如：/portal/page/index?id=3 外链请以http://或https://开头</p>
                            </div> 
                        </div>
                        
                        <div class="form-group">
                            <label for="input-login_private_url" class="col-sm-2 control-label"><span
                                    class="form-required"></span>英文隐私政策跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_private_url" name="options[login_private_url_en]" value="{$site_info.login_private_url_en|default=''}">
                                <p class="help-block">本站链接请以/开头，如：/portal/page/index?id=3 外链请以http://或https://开头</p>
                            </div> 
                        </div>
						
						



                        <div class="form-group">
                            <label for="input-login_service_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>服务协议名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_service_title" name="options[login_service_title]" value="{$site_info.login_service_title|default=''}">
                                <p class="help-block">填写的名称必须与弹框内容和登录界面底部协议标题中填写的名称相符,必须包含书名号《》</p>
                            </div> 
                        </div>
						
						<div class="form-group">
                            <label for="input-login_service_title_en" class="col-sm-2 control-label"><span
                                    class="form-required"></span>Service Agreement Name</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_service_title_en" name="options[login_service_title_en]" value="{$site_info.login_service_title_en|default=''}">
                                <p class="help-block">The name filled in must match the name filled in the pop-up content and the agreement title at the bottom of the login interface, and must include the book title《》</p>
                            </div> 
                        </div>
						

                        <div class="form-group">
                            <label for="input-login_service_url" class="col-sm-2 control-label"><span
                                    class="form-required"></span>服务协议跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_service_url" name="options[login_service_url]" value="{$site_info.login_service_url|default=''}">
                                <p class="help-block">本站链接请以/开头，如：/portal/page/index?id=4 外链请以http://或https://开头</p>
                            </div> 
                        </div>
                        
                        <div class="form-group">
                            <label for="input-login_service_url" class="col-sm-2 control-label"><span
                                    class="form-required"></span>英文服务协议跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_service_url" name="options[login_service_url_en]" value="{$site_info.login_service_url_en|default=''}">
                                <p class="help-block">本站链接请以/开头，如：/portal/page/index?id=4 外链请以http://或https://开头</p>
                            </div> 
                        </div>


                        

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>


                    <!-- 青少年模式 -->
                    <div class="tab-pane" id="K">
                        
                        
                        <div class="form-group">
                            <label for="input-teenager_des" class="col-sm-2 control-label">青少年模式提示语</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-teenager_des"
                                          name="options[teenager_des]">{$site_info.teenager_des|default=''}</textarea>
                                          <p class="help-block">青少年模式提示语（200字以内）</p>
                            </div>
                        </div>
						<div class="form-group">
                            <label for="input-teenager_des_en" class="col-sm-2 control-label">Teenage mode prompt language</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-teenager_des_en"
                                          name="options[teenager_des_en]">{$site_info.teenager_des_en|default=''}</textarea>
                                          <p class="help-block">Teenage mode prompt language（200Within words）</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                    <!-- 排行榜设置 -->
                    <div class="tab-pane" id="L">
                        
                        <div class="form-group">
                            <label for="input-leaderboard_switch" class="col-sm-2 control-label">排行榜开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[leaderboard_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="site_info['leaderboard_switch']" value="1">selected</eq>>开启</option>
                                </select>
                                <p class="help-block">关闭后，APP端首页不显示排行榜入口</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 排行榜设置 -->
                    <div class="tab-pane" id="P">
                        
                        <div class="form-group">
                            <label for="input-leaderboard_switch" class="col-sm-2 control-label">免费匹配开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[is_free]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="site_info['is_free']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-login_alert_title" class="col-sm-2 control-label"><span
                                    class="form-required"></span>免费次数</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-login_alert_title" name="options[free_times]" value="{$site_info.free_times}">
                            </div> 
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="R">
                        
                        <div class="form-group">
                            <label for="input-leaderboard_switch" class="col-sm-2 control-label">用户等级</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[user_level]">
                                    <foreach name="user_levels" item="vo">
                                        <option value="{$vo.id}" <if condition="$vo.id eq $site_info.user_level">selected</if>>{$vo.levelname}</option>
                                    </foreach>
                                </select>
                                <p class="help-block">开播用户等级</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    (function(){
        $('.btn-cancel-thumbnail').click(function () {
            $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
            $('#thumbnail').val('');
        });

    })()

</script>
</body>
</html>
